<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>



<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>用户信息添加</title>

<meta name="description"
	content="Source code generated using layoutit.com">
<meta name="author" content="LayoutIt!">

<link href="<%=basePath%>/Bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="<%=basePath%>/Bootstrap/css/style.css" rel="stylesheet">


<style type="text/css">
label div span {
	color: red;
	font-family: 隶书;
	font-size: 7;
}
/**文本框内容右对齐**/
label {
	text-align: right;
}
</style>
	<script src="<%=basePath%>/Bootstrap/js/jquery.min.js"></script>
	<script src="<%=basePath%>/Bootstrap/js/bootstrap.min.js"></script>
	<script src="<%=basePath%>/Bootstrap/js/scripts.js"></script>
<!-- <script type="text/javascript" >
$(function(){ 
	//-------------------下拉选择框赋值-------------------
	console.info("年龄"+$("#hidAge")[0].value);
	var currentAge=$("#hidAge")[0].value;
	//没有获取到年龄，或者后台没有传入年龄（新增操作）
	if(currentAge==undefined||currentAge==""){ 
	/* if(currentAge=null||currentAge=""){ */
		//设置默认值为18
		currentAge=18;
	}
    //设置下拉选择框中的值
    $("#txtAgee").val(currentAge);
    
    
    
	//-------------------单选框赋值-------------------
    
}); -->
</script>

</head>
<body>
	<form action="<%=basePath %>AddInfoServlet" method="post">
		<div class="row">
			<h5 align="center">
				<font color="green" face="隶书" size="6">用户信息录入</font>
			</h5>
		</div>
        
        <%-- <input type="hidden" id="hidId" value="${sessionScope.usee.user_id }"/>
        <input type="hidden" id="hidSex" value="${sessionScope.usee.user_sex }"/>
        <input type="hidden" id="hidAge" value="${requestScope.usee.user_age }"/> --%>
        <%-- <input type="hidden" id="hidAge" value="${requestScope.useB.user_age }"/> --%>

        <div class="container-fluid">
				<div class="row form-group">
					<div class="col-md-6">
						<label class="control-label">姓名</label>
						 <input class="form-control"
							type="text" id="txtName" name="txtNamee" placeholder="姓名"
							style="width: 60%;" value="${sessionScope.usee.user_name }"/>
					</div>
					<div class="col-md-6">
						<label class="control-label">性别</label> 
						<!-- <select class="form-control"
							id="chSex" name="chSexx" style="width: 30%;">
							<option value="男">男</option>
							<option value="女">女</option>
						</select> -->

					<div>
						<label class="radio-inline">
						    <input type="radio" id="chSex" name="chSexx" value="女" />女
						</label> 
						<label class="radio-inline"> 
						    <input type="radio" id="chSex" name="chSexx" value="男" />男
						</label>
					</div>
				</div>
				</div>


				<div class="row form-group ">
					<div class="col-md-6 ">
						<label class="control-label">密码</label>
						 <input class="form-control"
							type="password" id="txtPsw" name="txtPsww" placeholder="password"
							style="width: 40%;" value="${sessionScope.usee.user_psw }"/>
					</div>
					
					
					<div class="col-md-6">
						<!-- <label>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄</label> <input
							type="text" id="txtAge" name="txtAgee" placeholder="年龄"
							style="width: 60%;" /> -->
							                                                                                               
						<label class="control-label">年龄</label>
						<select  class="form-control" id="txtAge" name="txtAgee" style="width: 30%";>
                           <c:forEach begin="10" end="100" varStatus="st">
                               <!-- option标签中最终显示的值范围由上层的foreach标签的begin，end决定，与value中的值无关 -->
                               <option value="${st.index +11}">${st.index }</option>
                           </c:forEach>
						</select>
					</div>
				</div>

				<div class="row form-group ">
					<div class="col-md-8">
						<label class="control-label">联系方式</label>
						 <input class="form-control" type="text" id="txtPho" name="txtPhoo"
							placeholder="手机号码" style="width: 44%;" value="${sessionScope.usee.user_tel }">
					</div>
					<div class="col-md-4"></div>
				</div>

				<div class="row form-group">
					<div class="col-md-12">
						<label class="control-label">住址</label>
						 <input class="form-control"
							type="text" id="txtAddr" name="txtAddrr" placeholder="地址"
							style="width: 95%;" value="${sessionScope.usee.user_address }">
					</div>
				</div>

				<div class="row form-group">
					<div class="col-md-12">

						<address>
							<strong>Twitter, Inc.</strong><br> 795 Folsom Ave, Suite 600<br>
							San Francisco, CA 94107<br> <abbr title="Phone">P:</abbr>
							(123) 456-7890
						</address>
					</div>
				</div>

				<div class="row form-group">
					<div class="col-md-12">
						<input type="submit" id="sub" name="subb" value="提交"
							style="color: green;" />
							
						<input type="reset" id="res" name="ress"
							value="重置" style="color: green;" />
					</div>
				</div>
			</div>	
	</form>


</body>
</html>